package com.ll.dal.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ll.base.enums.SexEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
@TableName("jj_class")
public class JJClassPO {
    @TableId(type= IdType.AUTO)
    private Long id;

    @JsonFormat(pattern = "YYYY-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间", example = "2020-12-02")
    private Date ctime;

    @NotNull(message = "钉钉用户id 不能为null")
    @ApiModelProperty(value = "钉钉用户id", example = "1844652736858142")
    private String cDingUid;

    @NotNull(message = "学校名称 不能为null")
    @ApiModelProperty(value = "学校名称", example = "师范大学")
    private String schoolName;

    @NotNull(message = "老师名称 不能为null")
    @ApiModelProperty(value = "老师名称", example = "无痕")
    private String teacher;

    @NotNull(message = "老师性别 不能为null")
    @ApiModelProperty(value = "老师性别", example = "男")
    private SexEnum teacherSex;

    @NotNull(message = "班级名称 不能为null")
    @ApiModelProperty(value = "班级名称", example = "94班")
    private String className;

    @NotNull(message = "班级人数 不能为null")
    @ApiModelProperty(value = "班级人数", example = "10")
    private String classNum;

    @NotNull(message = "地址 不能为null")
    @ApiModelProperty(value = "地址", example = "浙江省杭州市余杭区文二西路")
    private String address;

    @NotNull(message = "地址 不能为null")
    @ApiModelProperty(value = "收获人", example = "无痕")
    private String consignee;

    @NotNull(message = "地址 不能为null")
    @ApiModelProperty(value = "收获人手机", example = "18689412345")
    private String consigneePhone;

    @NotNull(message = "地址 不能为null")
    @ApiModelProperty(value = "收货人地址", example = "浙江省杭州市余杭区文二西路某某校区1幢301")
    private String consigneeAddress;

    @ApiModelProperty(value = "班级说明", example = "这只是个说明谢谢")
    private String remark;


    @ApiModelProperty(value = "地址-省", example = "11")
    private Long addressP;
    @ApiModelProperty(value = "地址-市", example = "1101")
    private Long addressC;
    @ApiModelProperty(value = "地址-区", example = "110101")
    private Long addressD;



    @ApiModelProperty(value = "收获地址-省", example = "11")
    private Long consigneeAddressP;
    @ApiModelProperty(value = "收获地址-市", example = "1101")
    private Long consigneeAddressC;
    @ApiModelProperty(value = "收获地址-区", example = "110101")
    private Long consigneeAddressD;
}
